# include <stdio.h>
int main()
    {
    int target,i,j,n;
    printf("请输入数组元素个数：\n");
    scanf("%d",&n);
    printf("请输入数组元素：\n");
    int nums[n];
        for(i=0;i<n;i++)
    {
	scanf("%d", &nums[i]);}
    printf("请输入目标值：\n");
    scanf("%d",&target);
    printf("输出的下标值为:");
    for(i=0;i<n;i++)
    {
        for(j=0;j<i;j++)
        {
        if(nums[i] + nums[j] == target)
        printf("%d %d",j,i);  
            }
    }
    return 0;}